import _objectSpread from '@babel/runtime/helpers/esm/objectSpread2';
import { Switch as AntdSwitch } from 'antd';
import React from 'react';
import createField from '../../createField';
var Switch = function Switch(props) {
  return /*#__PURE__*/ React.createElement(
    AntdSwitch,
    _objectSpread(
      {
        checkedChildren: '\u5F00',
        unCheckedChildren: '\u5173',
      },
      props,
    ),
  );
};
export default createField(Switch, {
  defaultDetailComponent: function defaultDetailComponent(props) {
    return /*#__PURE__*/ React.createElement(
      Switch,
      _objectSpread(
        _objectSpread({}, props),
        {},
        {
          disabled: true,
        },
      ),
    );
  },
  defaultFormItemProps: {
    valuePropName: 'checked',
  },
});
